/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gob.fonafe.dao.impl.stored;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import oracle.jdbc.OracleTypes;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.core.support.SqlLobValue;
import org.springframework.jdbc.object.StoredProcedure;
import pe.gob.fonafe.domain.InmuebleBean;
/**
 *
 * @author user
 */
public class EliminarGaleriaMuebleSP  extends StoredProcedure{

    private static final String PROC_PARAM ="USERGLC.P_ELIMINA_GALERIA_MUEBLE";


    public EliminarGaleriaMuebleSP(DataSource ds) {
        super(ds,PROC_PARAM);

        declareParameter(new SqlParameter("P_id_GaleriaMueble", Types.NUMERIC));
        declareParameter(new SqlOutParameter("V_MENSAJE", Types.VARCHAR));
        declareParameter(new SqlOutParameter("V_EXITO", Types.VARCHAR));
        compile();
    }

    public Map execute(String idsGaleriaMueble){
        Map inputs = new HashMap();
        inputs.put("P_id_GaleriaMueble", Integer.parseInt(idsGaleriaMueble));
        return super.execute(inputs);
    }
}
